.text
li $a0,0x00000000
li $a1,0x00000078
li $v0,8
syscall 
li $s1,0x00000000
loop:
 
getChar:
	lbu $s0,($s1)
	li $t0,960
	sub $t0,$s1,960
	bgez $t0,endloop
	beq $s0,0,endloop
	beq $s0,10,endloop
	li $t0,0x41
	sub $t0,$s0,$t0
	bgez $t0,largeThanA
	j others
largeThanA:
	li $t0,0x61
	sub $t0,$s0,$t0
	bgez $t0,largeThana
	li $t0,0x5a
	sub $t0,$s0,$t0
	blez $t0,isupper
	j others
isupper:
	addu $s0,$s0,0x20
	sb $s0,($s1)
	j others
largeThana:
	li $t0,0x7a
	sub $t0,$s0,$t0
	bgtz $t0,others
	j islower
islower:
	subu $s0,$s0,32
	sb $s0,($s1)
others:
	addi $s1,$s1,1
	j loop
endloop:
	li $a0,0x00000000
	li $a1,0x00000078
	li $v0,4
	syscall
	
	li $v0,10
	syscall